package com.sz.jinzheng.service.impl;

import com.sz.jinzheng.mapper.BorrowInfoMapper;
import com.sz.jinzheng.model.BorrowInfo;
import com.sz.jinzheng.model.BorrowerInfo;
import com.sz.jinzheng.model.StaffExmination;
import com.sz.jinzheng.service.BorrowInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BorrowInfoServiceImpl implements BorrowInfoService {
    @Resource
    private BorrowInfoMapper borrowInfoMapper;

    @Override
    public List<BorrowerInfo> allBorrowerInfo(Integer uid) {
        /**
         * 初始化用户所有的贷款信息
         *
         * @return
         */
        return borrowInfoMapper.allBorrowInfo(uid);
    }

    @Override
    public List<BorrowerInfo> allBorrowInfo1(Integer uid) {
        return borrowInfoMapper.allBorrowInfo1(uid);

    }

    @Override
    public List<BorrowerInfo> tongGuoBorrowerInfo(Integer uid) {
        return borrowInfoMapper.tongGuoBorrowerInfo(uid);
    }

    @Override
    public List<BorrowerInfo> notBorrowerInfo(Integer uid) {
        return borrowInfoMapper.notBorrowerInfo(uid);
    }

    @Override
    public List<BorrowerInfo> jieQingBorrowerInfo(Integer uid) {
        return borrowInfoMapper.jieQingBorrowerInfo(uid);
    }

    @Override
    public List<BorrowerInfo> notQingBorrowerInfo(Integer uid) {
        return borrowInfoMapper.notQingBorrowerInfo(uid);
    }

    @Override
    public int updateRepaymentStatus(Integer borrowInfoId) {
        return borrowInfoMapper.updateRepaymentStatus(borrowInfoId);
    }

    @Override
    public String getApprovalComments(Integer borrowerInfoId) {
        return borrowInfoMapper.getApprovalComments(borrowerInfoId);
    }

    @Override
    public int getborrowInfoid(Integer borrowerInfoid) {
        return borrowInfoMapper.getborrowInfoid(borrowerInfoid);
    }


}
